//
// Created by 吴喆 on 2020/3/15.
//

#ifndef SUMMER_WORLD_H
#define SUMMER_WORLD_H

#import <box2d/box2d.h>
#import "Time.h"

class World {
public:
    explicit World(float gravity);
    virtual ~World();
    void step();

    b2World *b2world;

    b2Body *createBody(b2BodyDef *);

private:
    b2Body *groundBody;
    // 速度迭代次数
    int32 velocityIterations = 1;

    // 位置变化迭代次数
    int32 positionIterations = 1;

};


#endif //SUMMER_WORLD_H
